import request from '@/utils/request'

export function updateReceiveStatus(data) {
  return request({
    url: '/traces/retailer/updateReceiveStatus',
    method: 'post',
	data:data
  })
}

export function createRetailer(data) {
  return request({
    url: '/traces/retailer/createRetailerReceive',
    method: 'post',
	data:data
  })
}

export function queryRetailerReceiveByCropsId(cropsId) {
  return request({
    url: '/traces/retailer/queryRetailerReceiveByCropsId/'+cropsId,
    method: 'get',
  })
}

export function queryBlockTraceByTraceId(traceId,userName) {
  return request({
    url: '/traces/retailer/queryBlockTraceByTraceId?traceId='+traceId+'&userName='+userName,
    method: 'get',
  })
}





